<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//a = 内存地址1 ===》[1,2,3,4]
			//b = 内存地址2 ===》[1,2,3]
			//aaa = 内存地址3 ===》 function aaa(a,b){}
			var a = [1,2,3]
			var b = [1,2,3]
			
			function aaa(a,b){
				//在作用域aaa里面生成了a,b
				//a = 内存地址1
				//b = 内存地址2
				//a = 内存地址1 ==>
				a.push(4);
				//b = 内存地址4 =》【1,2,3,4】
				b = [1,2,3,4]
			}
			
			aaa(a,b)
			console.log(a)//a ==>内存地址1 ==》[1,2,3,4]
			console.log(b)//b ==> 内存地址2 ===》【1,2,3]
		</script>
	</body>
</html>
